package ehcache.jndi;

import org.terracotta.connection.ConnectionFactory;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import java.util.Queue;

/**
 * Created by dongjigong on 2018/4/28.
 *
 * @Email osbornjonny@126.com
 * @Description
 */
public class JndiDemo {

    public static void main(String[] args) throws NamingException {
        Context context = new InitialContext();
        ConnectionFactory factory = (ConnectionFactory) context.lookup("queueCF");
        Queue applyQueue = (Queue) context.lookup("applyQueue");
    }
}
